package br.com.amadeus.android.entities;

import java.util.ArrayList;
import java.util.Date;

public class Forum implements Comparable<Forum>{
	
	private int id;
	private String name;
	private String description;
	private Date creationDate;
	private int amadeus_id;
		
	private ArrayList<Message> listMessages;
	
	public Forum() {
	}

	public Forum(int id) {
		super();
		this.id = id;
	}
	

	public Forum(int id, String name, String description, Date creationDate,
			int amadeus_id) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.creationDate = creationDate;
		this.amadeus_id = amadeus_id;
	}

	public Forum(int id, String name, String description, Date creationDate,
			int amadeus_id, ArrayList<Message> listMessages) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.creationDate = creationDate;
		this.amadeus_id = amadeus_id;
		this.listMessages = listMessages;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public ArrayList<Message> getListMessages() {
		return listMessages;
	}

	public void setListMessages(ArrayList<Message> listMessages) {
		this.listMessages = listMessages;
	}

	public int getAmadeus_id() {
		return amadeus_id;
	}

	public void setAmadeus_id(int amadeus_id) {
		this.amadeus_id = amadeus_id;
	}

	public int compareTo(Forum f) {
		return String.valueOf(this.amadeus_id).compareTo(String.valueOf(f.getAmadeus_id()));
	}		

}
